#include"lottery_sys.h"
void release_lottery(Lottery_t* lott_head)
{
//`	long time = 0;

	Lottery_t* cur = NULL;
	cur = (Lottery_t*)calloc(1,sizeof(Lottery_t));
	if(!cur)
	{
		return;
	}

	cur -> L_unit_price = 10;
	if(lott_head -> next == NULL)
		cur -> date = lott_head -> date;
	else
		cur -> date = lott_head -> next -> date + 1;
	printf("彩票期号：%ld\n",cur -> date);
	printf("彩票单价：%d\n",cur -> L_unit_price);
	cur -> L_yn_open = 0;
	cur -> money = 0;
	cur -> L_buyed_count = 0;

	cur -> next = lott_head -> next;
	lott_head -> next = cur;

	printf("\t\e[1;33m彩票发布成功！\n\e[0m");

}
